import { createSSRApp } from 'vue'
import noData from '@/components/no-data/no-data.vue'
import App from './App.vue'
import store from './store/index.js'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { share } from './utils/share.ts'
export function createApp () {
    const app = createSSRApp(App).component('noData', noData)
    return {
        app
    }
}

const app = createSSRApp(App)
// 全局分享
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-var-requires
app.use(share())
  .use(store)
  .mount('#app')

//
// const share = function (){
//   uni.share({
//     provider: "weixin",
//     scene: "WXSceneSession",
//     type: 1,
//     summary: "我正在使用HBuilderX开发uni-app，赶紧跟我一起来体验！",
//     success: function (res) {
//       console.log("success:" + JSON.stringify(res));
//     },
//     fail: function (err) {
//       console.log("fail:" + JSON.stringify(err));
//     }
//   })
// }
// // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// // @ts-ignore
// app.use(share)

// TODO 加减保记录的搜索不知道干啥用
